package com.heima.bingfagongjulei;

import java.util.concurrent.CountDownLatch;

public class Child01  extends Thread{
    private CountDownLatch countDown;
    public Child01(CountDownLatch countDown){this.countDown=countDown;}
    @Override
    public void run() {
        for (int i = 1; i <=10; i++) {
            System.out.println(getName()+"在吃第"+ i+"个饺子");
        }
        countDown.countDown();
    }
}
